<include file="Admin@default/public/header" />
<div class="toptip">
    <div class="toptit">提示：</div>
    <p class="link_green_line">新增模板只需将模板文件上传至 /Application/Mobile/View/目录下，更多模版请到 <a href="http://www.74cms.com/tpl/lists.html" target="_blank" style="color:#009900">[官方网站]</a> 获取。</p>
    <p>使用与骑士CMS不同版本的模板易产生错误</p>
    <p class="link_green_line">如果您熟悉html语法，则可以参考 <a href="http://www.74cms.com/handbook" target="_blank" style="color:#009900">[模版开发手册]</a> 自定义风格模版。</p>
</div>
<div class="toptit">当前模板</div>
<div class="form_main">
    <table width="460" border="0" cellspacing="12" cellpadding="0" class="link_blue" style="margin-left: 15px; margin-bottom: 20px;">
        <tr>
            <td width="176" style="text-align:center;">
                <img src="{$templates.thumb_dir}/Config/thumbnail.jpg" alt="{$templates.info.name}" width="86" height="136" border="1"  style="border: #CCCCCC;" />
            </td>
            <td width="220" style="line-height:180%;">
                名称：{$templates.info.name}<br />
                版本：{$templates.info.version}<br />
                作者：<a href="{$templates.info.authorurl}" target="_blank">{$templates.info.author}</a><br />
                模版ID：{$templates.dir}<br/>
                <input type="button" value="备份此模板" class="admin_submit" onclick="window.location='{:U('Admin/backup',array('tpl_name'=>$templates['dir']))}'"  style="margin-top:10px;"/>
            </td>
        </tr>
    </table>
</div>
<div class="toptit link_blue">其它可用模版</div>
<div class="form_main">
    <volist name="list" id="li">
        <div style="float:left; width:176px; text-align:center; padding:15px; line-height:180%;margin-left: 20px;"  class="link_blue tpl_list">
            <a href="{:U('Admin/set',array('tpl_dir'=>$li['dir']))}" onclick="return confirm('你确定要使用此模板吗？(提示：频繁更换模版会影响网站排名)')">
                <img src="{$li.thumb_dir}/Config/thumbnail.jpg" alt="{$li.info.name}" width="86" height="136" border="1"  style="border: #CCCCCC;"/>
            </a>
            <br />
            <strong>{$li.info.name}</strong>
            <br />
            {$li.info.version} (作者:<a href="{$li.info.authorurl}" target="_blank">{$li.info.author}</a>)
        </div>
    </volist>
    <div class="clear"></div>
</div>

</div>
<include file="Admin@default/public/footer"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $(".tpl_list").hover(
            function () {
                $(this).css("background-color","#E4F4FC");
            },
            function () {
                $(this).css("background-color","");
            }
        );
    });
</script>
</html>